Called when user selects an item from a drop down menu.

<div class="definition">
    menuClick(id, menu_index, [event])
</div>

<div class="arguments">
    <table>
    <tr>
        <td>event</td>
        <td><b>object</b>, event object </td>
    </tr>
    </table>
</div>

Returns <i>undefined</i>.

<h4>Description</h4>

This method only works for toolbar item of type menu. It is called when user selects a menu item. It is used internally, but you can use
to emulate clicks. This method emits <a class="method" href="w2toolbar.onMenuClick">.onMenuClick</a> event.
<div style="height: 10px"></div>

If you have toolbar defined in the following way:
<textarea class="javascript">
let toolbar = new w2toolbar({
    name  : 'toolbar',
    items : [
        { type: 'check', id: 'item1', text: 'Check', icon: 'icon-page', checked: false },
        { type: 'menu',  id: 'item2',  group: '1', text: 'Menu', icon: 'icon-add',
            items: ['item1', 'item2', 'item3', 'item4']
        }
    ]
});
</textarea>

You can emulate menu click in the following way:
<textarea class="javascript">
var tb = w2ui.toolbar;
tb.menuClick({ name: tb.name, item: tb.get('item2'), subItem: tb.get('item2:item1'),
    originalEvent: {} });
</textarea>
